﻿<%@ Page Theme="BlueSkin" Title="Lms : Change User Course Status" Language="C#" MasterPageFile="~/LmsWebSite/MasterEN.master" AutoEventWireup="true" CodeFile="UpdateEmployeeStatusEN.aspx.cs" Inherits="UpdateEmployeeStatusEN" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>
            <asp:UpdateProgress ID="uprogress1" runat="server">
                <ProgressTemplate>
                    <div style="position: fixed; width: 30px; height: 30px; top: 0px; right: 0px; border: 1px solid orange;">
                        <img src="images/loading.gif" style="width: 30px; height: 30px;" alt='Loading' title='Loading' />
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
            <table cellspacing="5" cellpadding="5" width="100%">
                <tr>
                    <td align="left" class="heading">
                        Admin --> Change User Course Status
                    </td>
                </tr>
            </table>
            <br />
            <div class="aligning allWidthWithMargins  direction" style="margin-bottom: 10px;
                margin-left: 30px; margin-right: 30px;">
                <div class="floating direction aligning" style="width: 300px;">
                    <asp:TextBox ID="txtSearch" runat="server" Width="300px"></asp:TextBox>
                </div>
                <div class="floating" style="font-size: 1px; width: 11px; height: 1px;">
                </div>
                <div class="floating direction aligning" style="width: 100px;">
                    <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click"
                        CausesValidation="false" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange"
                        ForeColor="White" />
                </div>
                <div class="clearing" style="height: 10px;">
                </div>
                <div class="aligning allWidthWithMargins  direction">

                     <asp:GridView DataKeyNames="GenID" ID="grdUsers" runat="server" 
                        AutoGenerateColumns="False" AllowPaging="True" 
                          Font-Size="12px" 
                         Width="840px" onrowediting="grdUsers_RowEditing" 
                         onpageindexchanging="grdUsers_PageIndexChanging" 
                         EnableModelValidation="True" >
                
                
                        <HeaderStyle HorizontalAlign="Center"/>
                
                        <RowStyle HorizontalAlign="Center" />

                        <EmptyDataTemplate>
                        <div class="aligning floating direction" style="width:840px;padding-top:10px;padding-bottom:10px;">
                            <asp:Label  runat="server" Text="Label" >No Users Found</asp:Label> 
                                               
                        </div>
                    
                        </EmptyDataTemplate>
                        <Columns>
                          

                          <asp:TemplateField HeaderText="Badge" HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
                            <ItemTemplate>
                              <asp:Label runat="server"><%#Eval("Badge") %></asp:Label>
                            </ItemTemplate>
                          
                              <HeaderStyle CssClass="gridRowStyle" />
                              <ItemStyle CssClass="gridRowStyle" />
                          
                          </asp:TemplateField>
                    
                          
                          <asp:TemplateField HeaderText="ID">
                            <ItemTemplate>
                                 <asp:Label ID="Label1" runat="server"><%#Eval("ID") %></asp:Label>
                            </ItemTemplate>
                          
                          </asp:TemplateField>
                            
                    
                            <asp:TemplateField HeaderText="English Name">
                            <ItemTemplate>
                                 <asp:Label  runat="server"><%#((DatabaseComponent.Persons)Container.DataItem).getFullName() %></asp:Label>
                            </ItemTemplate>
                          
                          </asp:TemplateField>
                        
                           <asp:TemplateField HeaderText="Arabic Name">
                            <ItemTemplate>
                                 <asp:Label   runat="server"><%#((DatabaseComponent.Persons)Container.DataItem).getFullNameAR() %></asp:Label>
                            </ItemTemplate>
                          
                          </asp:TemplateField>


                          <asp:CommandField HeaderText="Action" EditText="Change" ShowEditButton="true"  />
                        
               
                
                
                
                        </Columns>
                
                
                    </asp:GridView>
                </div>


                <div class="clearing" style="height: 10px;">
                </div>
                <div class="aligning allWidthWithMargins  direction">

                     <asp:GridView DataKeyNames="ID" ID="grdCourses" runat="server" 
                        AutoGenerateColumns="False" AllowPaging="True" 
                          Font-Size="12px" 
                         Width="840px" onrowediting="grdCourses_RowEditing" 
                         onpageindexchanging="grdCourses_PageIndexChanging" 
                         onrowdatabound="grdCourses_RowDataBound" 
                         onrowdeleting="grdCourses_RowDeleting" EnableModelValidation="True" >
                
                
                        <HeaderStyle HorizontalAlign="Center"/>
                
                        <RowStyle HorizontalAlign="Center" />

                        <EmptyDataTemplate>
                        <div class="aligning floating direction" style="width:840px;padding-top:10px;padding-bottom:10px;">
                            <asp:Label   runat="server" Text="Label" >No Courses Found</asp:Label> 
                                               
                        </div>
                    
                        </EmptyDataTemplate>
                        <Columns>
                          

                          <asp:TemplateField HeaderText="Course English Name" HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
                            <ItemTemplate>
                              <asp:Label  runat="server"><%#((DatabaseComponent.RegisteredCourses)Container.DataItem).objCourses.CourseNameEN %></asp:Label>
                            </ItemTemplate>
                          
                              <HeaderStyle CssClass="gridRowStyle" />
                              <ItemStyle CssClass="gridRowStyle" />
                          
                          </asp:TemplateField>



                          <asp:TemplateField HeaderText="Course Arabic Name" HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
                            <ItemTemplate>
                              <asp:Label   runat="server"><%#((DatabaseComponent.RegisteredCourses)Container.DataItem).objCourses.CourseNameAR %></asp:Label>
                            </ItemTemplate>
                          
                              <HeaderStyle CssClass="gridRowStyle" />
                              <ItemStyle CssClass="gridRowStyle" />
                          
                          </asp:TemplateField>
                    
                          
                          <asp:TemplateField HeaderText="Status">
                            <ItemTemplate>
                                <asp:DropDownList ID="ddlStatus" runat="server">
                                </asp:DropDownList>
                            </ItemTemplate>
                          
                          </asp:TemplateField>
                            
                    
                            
                            <asp:TemplateField HeaderText="Action">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbEdit" runat="server" CommandName="Edit" CommandArgument='<%# Container.DataItemIndex %>'>Change</asp:LinkButton>
                                    <br />
                                    <asp:LinkButton ID="lbDelete" runat="server" CommandName="Delete" CommandArgument='<%# Container.DataItemIndex %>'
                                    OnClientClick="return confirm('Are you sure ?');"  >UnRegister</asp:LinkButton>
                                
                                </ItemTemplate>
                            
                            </asp:TemplateField>

                          
                        
               
                
                
                
                        </Columns>
                
                
                    </asp:GridView>
                </div>


            </div>
        </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>

